<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<s:include value="../header.jsp"></s:include>
<div id="main">

<br />
<br />
<br />
<center>
	<p><h1>Welcome <sec:authentication property="principal.username" />!</h1></p>
</center>
<br /><br />
<center>
	<div id="chooseProjectForm">
		
		<br />
		
		<s:form action="chooseProject" namespace="/">
		
			<s:select label="Your project`s list" headerKey="-1"
				headerValue="Select project" list="projectsNames" name="yourProject" />
		
			<s:submit type="submit" name="submit" cssClass="ui-button"/>
	
		</s:form>
	</div>
</center>


<sec:authorize access="hasRole('ROLE_ADMIN')">
	<!-- pozniej zmienic na PM -->

	<div>
	<button><s:url id="addProject" value="addProjectForm.action">
</s:url><s:a href="%{addProject}" cssClass="ui-button">Create new project</s:a></button>

<button><s:url id="runTests" value="testAction.action">
</s:url><s:a href="%{runTests}" cssClass="ui-button">Run tests</s:a></button>

	</div>

</sec:authorize>

</body>
</html>